local gamelib = require "club.threecard.gamelib"
local game = require "club.threecard.bjracing"

local mainbg = function()
    return game.require "gameui.background.mainbg";
end

return
{
    routes = 
    {
        {
            path = "/"..game.package.."/main",
            components =
            {
                background = mainbg,
                default = function() 
                    --return game.require "gameui.main.main";
                    return gamelib.require "UI.RoomLobby.RoomLobbyUI";
                end
            }
        },
        
        {
            path = "/"..game.package.."/game_loading",
            components =
            {
                background = mainbg,
                default = function() 
                    return gamelib.require "UI.GameLoading.GameLoadingUI";
                end
            }
        },

        {
            path = "/"..game.package.."/game_scene",
            components =
            {
                default = function()
                    return game.require "gameui.gamescene.ingame"
                end
            }
        },

        {
            path = "/"..game.package.."/settlement",
            components =
            {
                default = function()
                    return game.require "gameui.settlement.settlement"
                end
            }
        }
    }
}